package cn.ycc1.boot3.ssm;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 1. 告诉mybatis扫描哪个包下的mapper接口
 * 2. 每个接口的xml文件都在哪里 用配置项
 * 3. mybatis就会自动关联绑定
 */
@MapperScan(basePackages = "cn.ycc1.boot3.ssm.mapper")
@SpringBootApplication
public class Boot305SsmApplication {

    public static void main(String[] args) {
        SpringApplication.run(Boot305SsmApplication.class, args);
    }

}
